function errorsIn = errorsOut (outSim,T)
%UNTITLED1 Summary of this function goes here
%  Detailed explanation goes here

err = zeros(1,size(outSim,2));
numE = 0;
for i=1:size(outSim,2)
    y = outSim(:,i);
    
    % ta slozka, ve ktere se nachazi maximum je vystupem site
    ind = find(max(y)==y);
    ind = ind(1);
    if (T(ind,i) ~= 1)
        err(1,i) = 1;
        numE = numE + 1;
    end;
end
errorsIn = 1:size(outSim,2);
errorsIn = errorsIn(err & errorsIn);